package kp.rpc.loadbalancer;

import kp.rpc.model.ServiceMetaInfo;

import java.util.List;
import java.util.Map;

/**
 * @author tzf
 * @description: 负载均衡器(消费端使用)
 * @date: 2024/6/7 12:47
 */

public interface LoadBalancer {
    /**
     * @param requestParams       请求参数
     * @param serviceMetaInfoList 服务元数据列表
     * @return kp.rpc.model.ServiceMetaInfo
     * @description: 选择服务调用节点
     * @author tzf
     * @date: 2024/6/7 12:48
     */

    default ServiceMetaInfo select(Map<String, Object> requestParams, List<ServiceMetaInfo> serviceMetaInfoList) {
        return null;
    }
}
